/**
 * 
 */
package com.primestone.cim.util;

import java.util.Collection;


/**
 * @author cesar.mateus
 *
 */
public class CollectionUtil {
	
	/**
	 * 
	 * @param collection any collection to check.
	 * @return true if not null and not empty, else return false.
	 */
	public static boolean safe(Collection<? extends Object> collection) {
		if( collection == null || collection.isEmpty() ) {
			return false;
		}
		return true;
	}
	
	
}
